package com.itheima.tlias84.controller;

import com.itheima.tlias84.Po.SelectLogPageParam;
import com.itheima.tlias84.Service.LogService;
import com.itheima.tlias84.Util.ResultUtil;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogController {
    @Resource
    LogService logService;

    @GetMapping("/page")
    public ResultUtil listLogsByPage(SelectLogPageParam param) {
        System.out.println("param = " + param);
        return logService.listLogsByPage(param);
    }

}
